package com.atguigu.day11.final01;

//public final class Animal {
public  class Animal {
   final int num;

    public Animal(int num) {
        this.num = num;
    }

    // public final void eat(){
    public  void eat(){

    }

    public Animal() {
        num=90;
    }
}
class Dog extends Animal{

    @Override
    public void eat() {

    }
}
class Cat {
    String name;
    public Cat(String name) {
        this.name = name;
    }
    @Override
    public String toString() {
        return "Cat{" +
                "name='" + name + '\'' +
                '}';
    }
}